/*代理商 配置管理*/
var app = new Vue({
  el: '#app',
  data: {
    sidebarNavList: [
      {
        icon: "icon-match",
        text: "兑入订单管理",
        href: "match.html"
      },
      {
        icon: "icon-cash-out",
        text: "兑出订单管理",
        href: "cash_out.html"
      },
      {
        icon: "icon-gathering",
        text: "收款订单管理",
        href: "gathering.html"
      },
      {
        icon: "icon-bill",
        text: "账单管理",
        href: "bill.html"
      },
      {
        icon: "icon-rebate",
        text: "返佣管理",
        href: "rebate.html"
      },
      {
        icon: "icon-users",
        text: "用户管理",
        href: "users.html"
      },
      {
        icon: "icon-config-manage",
        text: "配置管理",
        href: "config_manage.html"
      }
    ],
    userName: '张三',

    // 兑出设置
    USDCNY: "USDCNY",
    exchangeRate: '7.2', // 汇率

    // 发邮件
    isShowSendEmail: false,
    // 发送成功
    isShowSendSucceed: false,
    // 日志
    matchOrderFinishData: [
      {
        title: '服务商（user2）确认已收款',
        zfk: '2018.08.03',
        hms: '14:20:20',
      },
      {
        title: '服务商（user2）恢复订单，备注：120min收到应收款',
        zfk: '2018.08.03',
        hms: '14:20:20',
      },
      {
        title: '运营方（admin）取消订单，备注：经核实90min未收到应收款',
        zfk: '2018.08.03',
        hms: '14:20:20',
      },
      {
        title: '服务商（user2）确认未收款，备注：30min未收到应收款',
        zfk: '2018.08.03',
        hms: '14:20:20',
      },
      {
        title: '客户确认转账',
        zfk: '2018.08.03',
        hms: '14:20:20',
      },
      {
        title: '创建入金订单',
        zfk: '2018.08.03',
        hms: '14:20:20',
      },
    ],
    finishIndex: 3, // 日志完成的步骤(从0开始)

    // 兑出设置
    cashOutSet: false,
    setSucceed: false,
    smsCode: '服务器一',
  },

  methods: {
    submitSmsCode: function () {
      this.cashOutSet = false;
      this.setSucceed = true
    },

    addServer: function () {
      this.cashOutSet = true
    },
    closeCashOutSet: function () {
      this.cashOutSet = false
    },

    closeSucceed: function () {
      this.setSucceed = false
    }
  }
})